package cn.stylefeng.guns.modular.tool.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.tool.entity.ToolExpressReconciliationYz;
import cn.stylefeng.guns.modular.tool.model.params.ToolExpressExcelParam;
import cn.stylefeng.guns.modular.tool.model.params.ToolExpressReconciliationYzParam;
import cn.stylefeng.guns.modular.tool.model.result.ToolExpressReconciliationYzResult;
import cn.stylefeng.guns.modular.tool.model.result.orderCount;
import cn.stylefeng.roses.core.reqres.response.ResponseData;

import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 邮政对账管理 服务类
 * </p>
 *
 * @author zhucx
 * @since 2022-12-14
 */
public interface ToolExpressReconciliationYzService extends IService<ToolExpressReconciliationYz> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2022-12-14
     */
    void add(ToolExpressReconciliationYzParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2022-12-14
     */
    void delete(ToolExpressReconciliationYzParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2022-12-14
     */
    void update(ToolExpressReconciliationYzParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2022-12-14
     */
    ToolExpressReconciliationYzResult findBySpec(ToolExpressReconciliationYzParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2022-12-14
     */
    List<ToolExpressReconciliationYzResult> findListBySpec(ToolExpressReconciliationYzParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2022-12-14
     */
     LayuiPageInfo findPageBySpec(ToolExpressReconciliationYzParam param,String condition,Long operateId);

     /**
      * 查询分页数据，Specification模式
      *
      * @author zhucx
      * @Date 2022-12-14
      */
      LayuiPageInfo findPageBySpecYzDz(ToolExpressReconciliationYzParam param,String condition);

	ResponseData getExceldata(MultipartFile file, Long reconciliationId, ResponseData data)throws Exception;

	boolean saveBatchList(List<ToolExpressReconciliationYzParam> list);

	void deleteBySpec(ToolExpressReconciliationYzParam param);

	Workbook exportToExcel(Long reconciliationId);

	List<orderCount> findorderCount(ToolExpressReconciliationYzParam param, Long operateId);

}
